<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>PHYService调试</title>
<script type="text/javascript" src="res/public/js/jquery/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
	$('#btnsubmit').click(function(){
		$('#res').val("获取中...");
		var params = $('#form1').serialize();
		$.post("index.php?{{$TIN_CTL}}=demoservice&{{$TIN_ACT}}=getapi&"+params,function(res){
			$('#res').val(res);
		});
	});
});
</script>
</head>
<body>
</head>

<body>
<form name="form1" id="form1">
<table>
<tr><td align="right">Api地址：</td><td><input type="text" name="apiurl" size="50" value="http://172.16.5.96/nongyebu_xxsj/" /></td></tr>
<tr><td align="right">Service名称：</td><td><input type="text" name="svname" value="demo" /></td></tr>
<tr><td align="right">Service方法名称：</td><td><input type="text" name="actname" value="GetUserList" /></td></tr>
<tr><td align="right">返回数据格式：</td><td><select name="restype"><option value="json">json</option><option value="xml">xml</option></select></td></tr>
<tr><td align="center" colspan="2"><input type="button" id="btnsubmit" value="提交测试" /></td></tr>
<tr><td align="left" colspan="2">返回结果：</td></tr>
<tr><td align="left" colspan="2"><textarea id="res" rows="8" cols="80"></textarea></td></tr>
</table>
</form>
</body>
</html>
